using Common;
using System;
namespace Host
{
	public abstract class TimingComponents : IComponents
	{
		public TimingComponents() { }
		public TimingComponents(Timing timing)
		{
			Timing = timing;
		}

		public Timing Timing { get; set; }

		public new long NextRunTime
		{
			get { return (Timing != null ? Timing.NextTiming() : DateTime.MaxValue).Ticks / TICK2SECOND; }
		}
	}
}
